|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.pnr.hci.CreditLimitBalanceModel
public class CreditLimitBalanceModel
This Java class represents a credit limit balance defined in a subscriber account
stored in customer master data owned by a service provider;
A credit limit balance is a monetary counter associated to a currency and intended to limit the use of a marketable service for a time period.
A credit limie balance add one or more amount alerts to this credit limit balance.
SubscriberAccountModel,
AmountAlertModelThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="creditLimitBalance">
<xs:complexType>
<xs:sequence>
<xs:element ref="amountAlert" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="code" type="xs:string" use="required"/>
<xs:attribute name="description" type="xs:string"/>
<xs:attribute name="currency" type="xs:string" use="required"/>
<xs:attribute name="amount" type="xs:string" use="required"/>
<xs:attribute name="creditLimit" type="xs:string"/>
<xs:attribute name="isDefault" type="xs:boolean"/>
<xs:attribute name="referenceDate" type="xs:dateTime"/>
<xs:attribute name="resetRecurringDates" type="xs:string"/>
</xs:complexType>
</xs:element>
| Constructor Summary | |
|---|---|
CreditLimitBalanceModel()
Builds an empty credit limit balance. |
|
CreditLimitBalanceModel(java.lang.String code,
java.lang.String description,
java.math.BigDecimal amount,
java.lang.String currency,
java.math.BigDecimal creditLimit)
Builds an credit limit balance. |
|
| Method Summary | |
|---|---|
void |
addAmountAlert(AmountAlertModel alert)
Adds a AmountAlertModel to this credit limit balance amount alerts list. |
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
java.math.BigDecimal |
getAmount()
Gets the amount of the credit limit balance. |
int |
getAmountAlertCount()
Gets the size of this credit limit balance amount alerts list. |
java.util.Iterator<AmountAlertModel> |
getAmountAlertIterator()
Gets this credit limit balance amount alerts list iterator. |
AmountAlertModel[] |
getAmountAlerts()
Gets this credit limit balance amount alerts list. |
java.lang.String |
getCode()
Gets the code of the credit limit balance. |
RatingContextDescription |
getContext(ContextualNode child)
|
java.math.BigDecimal |
getCreditLimit()
Gets the credit limit amount of the credit limit balance. |
java.lang.String |
getCurrencyCode()
Gets the currency code of the credit limit balance. |
java.lang.String |
getDescription()
Gets the description of the credit limit balance. |
java.util.Date |
getReferenceDate()
Gets the reference date of the credit limit balance. |
RecurringDateModel |
getResetRecurringDate()
Gets the reset recurring date of the credit limit balance. |
RatingContextDescription |
inheritedContext()
|
boolean |
isDefault()
Tests if this credit limit balance is the default one. |
void |
isDefault(boolean isDefault)
Sets this credit limit balance to be the default one. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
boolean |
removeAmountAlert(AmountAlertModel alert)
Removes a AmountAlertModel to this credit limit balance amount alerts list. |
AmountAlertModel |
removeAmountAlert(int index)
Removes a AmountAlertModel at given index to this credit limit balance amount alerts list. |
void |
setAmount(java.math.BigDecimal amount)
Sets the amount of the credit limit balance. |
void |
setAmountAlerts(AmountAlertModel[] alerts)
Sets this credit limit balance amount alerts list. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
void |
setCode(java.lang.String code)
Sets the code of the credit limit balance. |
void |
setCreditLimit(java.math.BigDecimal creditLimit)
Sets the credit limit amount of the credit limit balance. |
void |
setCurrencyCode(java.lang.String currencyCode)
Sets the currency code of the credit limit balance. |
void |
setDescription(java.lang.String description)
Sets the description of the credit limit balance. |
void |
setReferenceDate(java.util.Date referenceDate)
Sets the reference date of the credit limit balance. |
void |
setResetRecurringDate(RecurringDateModel resetRecurringDate)
Sets the reset recurring date of the credit limit balance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CreditLimitBalanceModel()
public CreditLimitBalanceModel(java.lang.String code,
java.lang.String description,
java.math.BigDecimal amount,
java.lang.String currency,
java.math.BigDecimal creditLimit)
code - The identification code of the credit limit balancedescription - The description of the credit limit balanceamount - The amount of the credit limit balancecurrency - The currency of the credit limit balancecreditLimit - The credit limit amount of the credit limit balance| Method Detail |
|---|
public java.math.BigDecimal getAmount()
public void setAmount(java.math.BigDecimal amount)
amount - The amount of the credit limit balancepublic java.lang.String getCode()
public void setCode(java.lang.String code)
code - The code of the credit limit balancepublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - The description of the credit limit balancepublic java.math.BigDecimal getCreditLimit()
public void setCreditLimit(java.math.BigDecimal creditLimit)
creditLimit - The credit limit amount of the credit limit balancepublic java.lang.String getCurrencyCode()
public void setCurrencyCode(java.lang.String currencyCode)
currencyCode - The currency code of the credit limit balancepublic RecurringDateModel getResetRecurringDate()
public void setResetRecurringDate(RecurringDateModel resetRecurringDate)
resetRecurringDate - The RecurringDateModel of the credit limit balancepublic java.util.Date getReferenceDate()
public void setReferenceDate(java.util.Date referenceDate)
referenceDate - The reference date of the credit limit balancepublic boolean isDefault()
true if this credit limit balance is the default one, false otherwisepublic final void isDefault(boolean isDefault)
isDefault - The boolean value to define if this credit limit balance
is the default onepublic void addAmountAlert(AmountAlertModel alert)
AmountAlertModel to this credit limit balance amount alerts list.
alert - The AmountAlertModel to be addedpublic boolean removeAmountAlert(AmountAlertModel alert)
AmountAlertModel to this credit limit balance amount alerts list.
alert - The AmountAlertModel to be removed
true if the alert is successfully removed, false otherwisepublic AmountAlertModel removeAmountAlert(int index)
AmountAlertModel at given index to this credit limit balance amount alerts list.
index - The index of the AmountAlertModel to be removed
AmountAlertModelpublic int getAmountAlertCount()
public AmountAlertModel[] getAmountAlerts()
public java.util.Iterator<AmountAlertModel> getAmountAlertIterator()
public void setAmountAlerts(AmountAlertModel[] alerts)
alerts - The list of AmountAlertModel of this credit
limit balance amount alerts listpublic RatingContextDescription getContext(ContextualNode child)
public RatingContextDescription inheritedContext()
public void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current element
public void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object into
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||